package conson.tech.manage.coupons.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import conson.tech.manage.coupons.entity.dto.CouponsCenterActivityDto;
import conson.tech.manage.coupons.entity.dto.CouponsCenterDto;
import conson.tech.manage.coupons.entity.dto.CouponsSearchDto;
import conson.tech.manage.coupons.entity.pojo.CouponsBatch;
import conson.tech.manage.coupons.entity.vo.*;
import org.apache.ibatis.annotations.Param;


/**
 * InterfaceName: CouponsBatchMapper
 * Description:
 * Author: ZYF
 * Date: 2020/7/20
 * Version: 1.0
 */
public interface CouponsBatchMapper extends BaseMapper<CouponsBatch> {


    /**
     * 查询创建优惠券列表
     */
    Page<CouponsBatchVo> searchCouponsList(Page<CouponsBatchVo> page,@Param("dto") CouponsSearchDto dto);

    /**
     * 查询优惠券详细信息
     */
    CouponsDetailVo detailCoupons(Long couponsId);

    /**
     * 查询优惠券详细信息(复制用)
     */
    CouponsCopyVo queryCouponsInformation(Long couponsId);

    /**
     * 查询优惠券运营审核列表
     */
    Page<CouponsBatchVo> searchOperateList(Page<CouponsBatchVo> page,@Param("dto") CouponsSearchDto dto);

    /**
     * 根据搜索条件，查询优惠券批次列表信息
     */
    Page<CouponsBatchCenterVo> queryCouponsList(Page<CouponsBatchCenterVo> page, @Param("dto")CouponsCenterDto dto);

    /**
     * 根据搜索条件查询优惠券批次信息
     * */
    Page<CouponsBatchCenterVo> queryCouponsActivityList(Page<CouponsBatchCenterVo> page,@Param("dto") CouponsCenterActivityDto dto);
}
